#ifndef LYRICSREADER_H
#define LYRICSREADER_H

#include <QTextEdit>

QT_BEGIN_NAMESPACE
QT_END_NAMESPACE

class Track;

class LyricsReader : public QTextEdit
{
    Q_OBJECT

public:
    LyricsReader(QWidget *parent = 0);

signals:
     void lyricsLoaded(Track *track);

private slots:
    void trackChanged(Track *track);
    void positionChanged(double time);

private:
    void processLine(QString line);
    int getLyricNumber(double time);

    QMap<double, QString> lyrics;
};

#endif // LYRICSREADER_H
